import Home from "../component/Home";
import About from "../component/About";
import Management from "../component/Management/Management";
import DMManagement from "../component/Management/DMManagement";
import StoreManagement from '../component/Management/StoreManagement';
import JubenManagement from '../component/Management/JubenManagement';
import MatchManagement from '../component/Management/MatchManagement';
import OrderManagement from '../component/Management/OrderManagement';
import AdviceManagement from '../component/Management/AdviceManagement';
import HomeManagement from "../component/Management/HomeManagement";
import DMInformation from '../component/Management/DMInformation';
import StoreInformation from '../component/Management/StoreInformation';

const routers = [
    {
        title:'首页',
        path:'/',
        component: Home
    },
    {
        title:'about',
        path:'/about',
        component:About
    },
    {
        title:'管理端主界面',
        path:'/management',
        component: Management,
        

        children:[//子路由的path不用加上父路由二等路径，可以直接写
            {title:'剧仙阁管理端',path:'',component:HomeManagement},
            {title: 'DM管理', path: 'dmManagement', component: DMManagement},
            { title: 'DM个人信息', path: 'dmInfromation/:id', component: DMInformation },
            {title:'地点管理',path:'storeManagement',component:StoreManagement},
            {title:'店家信息',path:'storeInfromation/:id',component:StoreInformation},
            {title:'剧本管理',path:'jubenManagement',component:JubenManagement},
            {title:'剧本-DM-地点匹配管理',path:'matchManagement',component: MatchManagement},
            {title:'订单查询',path:'orderManagement',component: OrderManagement},
            {title:'投诉系统',path:'adviceManagement',component: AdviceManagement},
        ]
    },
    {
        title:'home',
        path:'/home',
        component: Home
    },
    // {
    //     title:'DM管理',
    //     path:'/management/dmManagement',
    //     component:DMManagement
    // }
];

export default routers;
